home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Czytniki RSS / RSS Bandit 1.3.0.42 / RssBandit Installer.msi / _172FF5180BC61D3C6D240F14338A23AA / _943788168E384B34B93E90C7046C74F8 < prev    next >
Text File  |  2005-11-04  |  22KB  |  461 lines

  1. <xsl:stylesheet version='1.0' 
  2. xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  3. xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
  4. xmlns:xhtml='http://www.w3.org/1999/xhtml'
  5. xmlns:slash='http://purl.org/rss/1.0/modules/slash/' 
  6. xmlns:dc='http://purl.org/dc/elements/1.1/' 
  7. xmlns:fd='http://www.bradsoft.com/feeddemon/xmlns/1.0/'
  8. xmlns:bndt='http://www.25hoursaday.com/2003/RSSBandit/feeds/'
  9. exclude-result-prefixes='content slash dc fd bndt'>
  10.  
  11. <xsl:output method='xml' indent='yes' /> 
  12.  
  13.  
  14. <!-- channel group newspaper -->
  15. <xsl:template match="newspaper[@type='group']">
  16. <html><head><title><xsl:value-of select='title'/></title>
  17. <!-- <base href="{//channel/link}" /> -->
  18. <xsl:call-template name="embedded_style" />
  19. </head>
  20. <body>
  21. <table height="100%" width="100%">              
  22. <xsl:for-each select="//channel">
  23. <tr>
  24. <td class="PostFrame" height="100%" width="100%" valign="top">
  25.   <xsl:if test="current()/image">
  26. <div class="PostTitle" style="FLOAT: right">
  27.   <a href="{current()/image/link}" title="{current()/image/title}"><img src="{current()/image/url}"  alt="{current()/image/title}" border="0">
  28.   <xsl:if test="current()/image/width!=''"><xsl:attribute name="width"><xsl:value-of select="current()/image/width"/></xsl:attribute></xsl:if>
  29.   <xsl:if test="current()/image/height!=''"><xsl:attribute name="height"><xsl:value-of select="current()/image/height"/></xsl:attribute></xsl:if>
  30.   </img></a>
  31. </div>
  32.   </xsl:if>
  33.   <div class="PostTitle">            
  34. <a href='{current()/link}'>
  35.   <xsl:value-of  disable-output-escaping='yes' select='current()/title'/>
  36. </a>
  37.   </div>
  38.   <!-- <div class="PostInfos">
  39.   <b><xsl:value-of disable-output-escaping='yes' select="current()/category"/></b>
  40.   </div> -->
  41.   <xsl:variable name="outerposition" select="position()" />
  42.   <div class="PostContent">
  43. <xsl:for-each select='current()//item'>
  44.  
  45.                <map name="{concat('flagstate', string($outerposition), 'in' , string(position()))}">
  46.              <area shape="rect" coords="1,1,12,12" >
  47.                                                           <xsl:attribute name="href">fdaction:?action=toggleflag&postid=<xsl:choose><xsl:when test="current()/guid"><xsl:value-of select="current()/guid" /></xsl:when><xsl:when test="current()/link"><xsl:value-of select="current()/link" /></xsl:when></xsl:choose></xsl:attribute>
  48.                                                         </area>
  49.             </map>
  50.             <map name="{concat('readstate',  string($outerposition), 'in' ,string(position()))}">
  51.              <area shape="rect" coords="0,1,14,14" >
  52.                                                            <xsl:attribute name="href">fdaction:?action=toggleread&postid=<xsl:choose><xsl:when test="current()/guid"><xsl:value-of select="current()/guid" /></xsl:when><xsl:when test="current()/link"><xsl:value-of select="current()/link" /></xsl:when></xsl:choose></xsl:attribute>                                                        
  53.                                                        </area>
  54.             </map>
  55.  
  56.                 <xsl:choose>
  57.                  <xsl:when test="current()/fd:state[@read='1']">
  58.                     <img alt="Mark read or unread" border="0" usemap="{concat('#readstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$read.gif" onclick="swapImage(this)" />
  59.                 </xsl:when>
  60.                 <xsl:when test="current()/fd:state[@read='0']">
  61.                     <img alt="Mark read or unread" border="0" usemap="{concat('#readstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$unread.gif" onclick="swapImage(this)" />
  62.                 </xsl:when>
  63.                 </xsl:choose>
  64.                 
  65.                 <xsl:choose>
  66.                 <xsl:when test="current()/fd:state[@flagged='0']">
  67.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$flag.clear.gif" onclick="swapImage(this)" />
  68.                 </xsl:when>
  69.                 <xsl:when test="current()/bndt:flag-status[. = 'Review']">
  70.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$flag.yellow.gif" onclick="swapImage(this)" />
  71.                 </xsl:when>
  72.                 <xsl:when test="current()/bndt:flag-status[.='Read']">
  73.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$flag.green.gif" onclick="swapImage(this)" />
  74.                 </xsl:when>
  75.                 <xsl:when test="current()/bndt:flag-status[.='Forward']">
  76.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$flag.blue.gif" onclick="swapImage(this)" />
  77.                 </xsl:when>
  78.                 <xsl:when test="current()/bndt:flag-status[.='FollowUp']">
  79.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$flag.red.gif" onclick="swapImage(this)" />
  80.                 </xsl:when>
  81.                 <xsl:when test="//item/bndt:flag-status[.='Reply']">
  82.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$flag.purple.gif" onclick="swapImage(this)" /> 
  83.                 </xsl:when>
  84.                 <xsl:when test="current()/bndt:flag-status[.='Complete']">
  85.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string($outerposition), 'in' , string(position()))}" class="icon" src="$IMAGEDIR$flag.complete.gif" onclick="swapImage(this)" />
  86.                 </xsl:when>
  87.                 </xsl:choose>                
  88.   <div class="PostInfos">    
  89.     <a href='{current()/link}'>
  90.       <b><xsl:value-of disable-output-escaping='yes' select="current()/title"/></b>
  91.     </a>
  92.   </div>
  93.   <xsl:choose>
  94.     <xsl:when test='current()/xhtml:body'>
  95.       <xsl:copy-of select='current()/xhtml:body'/>
  96.     </xsl:when>
  97.     <xsl:when test='current()/content:encoded'>
  98.       <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/>
  99.     </xsl:when>
  100.     <xsl:otherwise>
  101.       <xsl:value-of disable-output-escaping='yes' select='current()/description'/>
  102.     </xsl:otherwise>
  103.   </xsl:choose>
  104.   
  105.   <div class="PostSignature">            
  106.     <br />Published:
  107.     <xsl:if test="current()/dc:creator and current()/dc:creator!=''">
  108.       <xsl:value-of disable-output-escaping='yes' select='current()/dc:creator'/>
  109.       <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  110.       </xsl:if><xsl:if test="current()/author and current()/author!=''">
  111.       by  <xsl:value-of disable-output-escaping='yes' select='current()/author'/>
  112.       <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  113.       </xsl:if>on
  114.       <xsl:value-of select='current()/pubDate'/>
  115.       <xsl:if test='current()/enclosure'>
  116.     <br />
  117.     <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  118.     <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/enclosure/@url'/><xsl:text disable-output-escaping='yes'>'></xsl:text>
  119.     Enclosure (<xsl:value-of select='current()/enclosure/@type'/>, <xsl:value-of select='current()/enclosure/@length'/> Bytes)
  120.     <xsl:text disable-output-escaping='yes'></a></xsl:text>                
  121.       </xsl:if>            
  122.       
  123.     </div>
  124.   </xsl:for-each>
  125. </div>
  126.   </td>
  127. </tr>
  128. </xsl:for-each>
  129. </table>
  130. </body></html>
  131. </xsl:template>
  132.  
  133. <!-- channel newspaper -->
  134. <xsl:template match="newspaper[@type='channel']">
  135. <html><head><title><xsl:value-of select='//channel/title'/></title>
  136. <base href="{//channel/link}" />
  137. <xsl:call-template name="embedded_style" />
  138. </head>
  139. <body>
  140.   <table height="100%" width="100%">
  141. <tr>
  142.   <td class="PostFrame" height="100%" width="100%" valign="top">
  143.     <xsl:if test="//channel/image">
  144.       <div class="PostTitle" style="FLOAT: right">
  145.     <a href="{//channel/image/link}" title="{//channel/image/title}"><img src="{//channel/image/url}"  alt="{//channel/image/title}" border="0">
  146.     <xsl:if test="//channel/image/width!=''"><xsl:attribute name="width"><xsl:value-of select="//channel/image/width"/></xsl:attribute></xsl:if>
  147.     <xsl:if test="//channel/image/height!=''"><xsl:attribute name="height"><xsl:value-of select="//channel/image/height"/></xsl:attribute></xsl:if>
  148.     </img></a>
  149.       </div>
  150.     </xsl:if>
  151.     <div class="PostTitle">            
  152.       <a href='{//channel/link}'>
  153.     <xsl:value-of  disable-output-escaping='yes' select='//channel/title'/>
  154.       </a>
  155.     </div>
  156.     <!-- <div class="PostInfos">
  157.     <b><xsl:value-of disable-output-escaping='yes' select="current()/category"/></b>
  158.     </div> -->
  159.     <div class="PostContent">
  160.       <xsl:for-each select='//item'>
  161.  
  162.              <map name="{concat('flagstate', string(position()))}">
  163.              <area shape="rect" coords="1,1,12,12" >
  164.                                                           <xsl:attribute name="href">fdaction:?action=toggleflag&postid=<xsl:choose><xsl:when test="current()/guid"><xsl:value-of select="current()/guid" /></xsl:when><xsl:when test="current()/link"><xsl:value-of select="current()/link" /></xsl:when></xsl:choose></xsl:attribute>
  165.                                                         </area>
  166.             </map>
  167.             <map name="{concat('readstate', string(position()))}">
  168.              <area shape="rect" coords="0,1,14,14" >
  169.                                                            <xsl:attribute name="href">fdaction:?action=toggleread&postid=<xsl:choose><xsl:when test="current()/guid"><xsl:value-of select="current()/guid" /></xsl:when><xsl:when test="current()/link"><xsl:value-of select="current()/link" /></xsl:when></xsl:choose></xsl:attribute>                                                        
  170.                                                        </area>
  171.             </map>
  172.  
  173.                 <xsl:choose>
  174.                  <xsl:when test="current()/fd:state[@read='1']">
  175.                     <img alt="Mark read or unread" border="0" usemap="{concat('#readstate', string(position()))}" class="icon" src="$IMAGEDIR$read.gif" onclick="swapImage(this)" /> 
  176.                 </xsl:when>
  177.                 <xsl:when test="current()/fd:state[@read='0']">
  178.                     <img alt="Mark read or unread" border="0" usemap="{concat('#readstate', string(position()))}" class="icon" src="$IMAGEDIR$unread.gif" onclick="swapImage(this)" /> 
  179.                 </xsl:when>
  180.                 </xsl:choose>
  181.                 
  182.                 <xsl:choose>
  183.                 <xsl:when test="current()/fd:state[@flagged='0']">
  184.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.clear.gif" onclick="swapImage(this)" /> 
  185.                 </xsl:when>
  186.                 <xsl:when test="current()/bndt:flag-status[. = 'Review']">
  187.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.yellow.gif" onclick="swapImage(this)" /> 
  188.                 </xsl:when>
  189.                 <xsl:when test="current()/bndt:flag-status[.='Read']">
  190.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.green.gif" onclick="swapImage(this)" /> 
  191.                 </xsl:when>
  192.                 <xsl:when test="current()/bndt:flag-status[.='Forward']">
  193.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.blue.gif" onclick="swapImage(this)" /> 
  194.                 </xsl:when>
  195.                 <xsl:when test="current()/bndt:flag-status[.='FollowUp']">
  196.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.red.gif" onclick="swapImage(this)" /> 
  197.                 </xsl:when>
  198.                 <xsl:when test="//item/bndt:flag-status[.='Reply']">
  199.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.purple.gif" onclick="swapImage(this)" /> 
  200.                 </xsl:when>
  201.                 <xsl:when test="current()/bndt:flag-status[.='Complete']">
  202.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.complete.gif" onclick="swapImage(this)" /> 
  203.                 </xsl:when>
  204.                 </xsl:choose>
  205.                 
  206.  
  207.     <div class="PostInfos">    
  208.       <a href='{current()/link}'>
  209.         <b><xsl:value-of disable-output-escaping='yes' select="current()/title"/></b>
  210.       </a>
  211.     </div>
  212.     <xsl:choose>
  213.       <xsl:when test='current()/xhtml:body'>
  214.         <xsl:copy-of select='current()/xhtml:body'/>
  215.       </xsl:when>
  216.       <xsl:when test='current()/content:encoded'>
  217.         <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/>
  218.       </xsl:when>
  219.       <xsl:otherwise>
  220.         <xsl:value-of disable-output-escaping='yes' select='current()/description'/>
  221.       </xsl:otherwise>
  222.     </xsl:choose>
  223.     
  224.     <div class="PostSignature">            
  225.       <br />Published:
  226.       <xsl:if test="current()/dc:creator and current()/dc:creator!=''">
  227.         <xsl:value-of disable-output-escaping='yes' select='current()/dc:creator'/>
  228.         <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  229.         </xsl:if><xsl:if test="current()/author and current()/author!=''">
  230.         by  <xsl:value-of disable-output-escaping='yes' select='current()/author'/>
  231.         <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  232.         </xsl:if>on
  233.         <xsl:value-of select='current()/pubDate'/>
  234.         <xsl:if test='current()/enclosure'>
  235.           <br />
  236.           <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  237.           <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/enclosure/@url'/><xsl:text disable-output-escaping='yes'>'></xsl:text>
  238.           Enclosure (<xsl:value-of select='current()/enclosure/@type'/>, <xsl:value-of select='current()/enclosure/@length'/> Bytes)
  239.           <xsl:text disable-output-escaping='yes'></a></xsl:text>                
  240.         </xsl:if>            
  241.         
  242.       </div>
  243.     </xsl:for-each>
  244.       </div>
  245.     </td>
  246.   </tr>
  247. </table>
  248. </body></html>
  249.   </xsl:template>
  250.  
  251.  
  252.   <!-- single news item -->
  253.   <xsl:template match="newspaper[@type='newsitem']">
  254. <html><head><title><xsl:value-of select='//item/title'/></title>
  255. <base href="{//item/link}" />
  256. <xsl:call-template name="embedded_style" />
  257. </head>
  258.   <body>
  259.     <table height="100%" width="100%">
  260.       <tr>
  261.     <td class="PostFrame" height="100%" width="100%" valign="top">
  262.       <xsl:if test="//channel/image">
  263.         <div class="PostTitle" style="FLOAT: right">
  264.           <a href="{//channel/image/link}" title="{//channel/image/title}"><img src="{//channel/image/url}"  alt="{//channel/image/title}" border="0">
  265.           <xsl:if test="//channel/image/width!=''"><xsl:attribute name="width"><xsl:value-of select="//channel/image/width"/></xsl:attribute></xsl:if>
  266.           <xsl:if test="//channel/image/height!=''"><xsl:attribute name="height"><xsl:value-of select="//channel/image/height"/></xsl:attribute></xsl:if>
  267.           </img></a>
  268.         </div>
  269.       </xsl:if>
  270.       <div class="PostTitle">
  271.  
  272.          
  273.           <xsl:variable name="itemID">
  274.             <xsl:choose>
  275.              <xsl:when test="//item/guid">
  276.         <xsl:value-of select="//item/guid" />
  277.          </xsl:when>
  278.          <xsl:when test="//item/link">
  279.         <xsl:value-of select="//item/link" />
  280.          </xsl:when>
  281.         </xsl:choose>
  282.       </xsl:variable>
  283.  
  284.             <map name="{concat('flagstate', string(position()))}">
  285.              <area shape="rect" coords="1,1,12,12" href="{concat('fdaction:?action=toggleflag&postid=', $itemID)}" />
  286.             </map>
  287.             <map name="{concat('readstate', string(position()))}">
  288.              <area shape="rect" coords="0,1,14,14" href="{concat('fdaction:?action=toggleread&postid=', $itemID)}" />
  289.             </map>
  290.  
  291.             <xsl:choose>
  292.                                 <xsl:when test="//item/fd:state[@read='1']">
  293.                     <img alt="Mark read or unread" border="0" usemap="{concat('#readstate', string(position()))}" class="icon" src="$IMAGEDIR$read.gif" onclick="swapImage(this)" /> 
  294.                 </xsl:when>
  295.                 <xsl:when test="//item/fd:state[@read='0']">
  296.                     <img alt="Mark read or unread" border="0" usemap="{concat('#readstate', string(position()))}" class="icon" src="$IMAGEDIR$unread.gif" onclick="swapImage(this)" /> 
  297.                 </xsl:when>                               
  298.             </xsl:choose>
  299.                        
  300.             <xsl:choose>                                  
  301.                 <xsl:when test="//item/fd:state[@flagged='0']">
  302.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.clear.gif" onclick="swapImage(this)" /> 
  303.                 </xsl:when>
  304.                 <xsl:when test="//item/bndt:flag-status[. = 'Review']">
  305.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.yellow.gif" onclick="swapImage(this)" /> 
  306.                 </xsl:when>
  307.                 <xsl:when test="//item/bndt:flag-status[.='Read']">
  308.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.green.gif" onclick="swapImage(this)" /> 
  309.                 </xsl:when>
  310.                 <xsl:when test="//item/bndt:flag-status[.='Forward']">
  311.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.blue.gif" onclick="swapImage(this)" /> 
  312.                 </xsl:when>
  313.                 <xsl:when test="//item/bndt:flag-status[.='FollowUp']">
  314.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.red.gif" onclick="swapImage(this)" /> 
  315.                 </xsl:when>
  316.                 <xsl:when test="//item/bndt:flag-status[.='Reply']">
  317.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.purple.gif" onclick="swapImage(this)" /> 
  318.                 </xsl:when>
  319.                 <xsl:when test="//item/bndt:flag-status[.='Complete']">
  320.                     <img alt="Set or clear flag" border="0" usemap="{concat('#flagstate', string(position()))}" class="icon" src="$IMAGEDIR$flag.complete.gif" onclick="swapImage(this)" /> 
  321.                 </xsl:when>                
  322.             </xsl:choose>                   
  323.  
  324.         <a href='{//item/link}'>
  325.           <xsl:value-of  disable-output-escaping='yes' select='//item/title'/>
  326.         </a>
  327.       </div>
  328.       <div class="PostInfos">
  329.         <b><xsl:value-of disable-output-escaping='yes' select="//item/category"/></b>
  330.       </div>
  331.       <div class="PostContent">
  332.         <xsl:choose>
  333.           <xsl:when test='//item/xhtml:body'>
  334.         <xsl:copy-of select='//item/xhtml:body'/>
  335.           </xsl:when>
  336.           <xsl:when test='//item/content:encoded'>
  337.         <xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/>
  338.           </xsl:when>
  339.           <xsl:otherwise>
  340.         <xsl:value-of disable-output-escaping='yes' select='//item/description'/>
  341.           </xsl:otherwise>
  342.         </xsl:choose>
  343.       </div>
  344.       <div class="PostSignature">
  345.         <a href='{//channel/link}' title='{//channel/description}'><xsl:value-of disable-output-escaping='yes'  select='//channel/title'/></a>
  346.         <br />Published:
  347.         <xsl:if test="//item/dc:creator and //item/dc:creator!=''">
  348.           <xsl:value-of disable-output-escaping='yes' select='//item/dc:creator'/>
  349.           <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  350.           </xsl:if><xsl:if test="//item/author and //item/author!=''">
  351.           <xsl:value-of disable-output-escaping='yes' select='//item/author'/>
  352.           <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  353.         </xsl:if>
  354.         <xsl:value-of select='//item/pubDate'/>
  355.         <xsl:if test='//item/enclosure'>
  356.           <br />
  357.           <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>
  358.           <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='//item/enclosure/@url'/><xsl:text disable-output-escaping='yes'>'></xsl:text>
  359.           Enclosure (<xsl:value-of select='//item/enclosure/@type'/>, <xsl:value-of select='//item/enclosure/@length'/> Bytes)
  360.           <xsl:text disable-output-escaping='yes'></a></xsl:text>                
  361.         </xsl:if>            
  362.       </div>
  363.     </td>
  364.       </tr>
  365.     </table>
  366.     </body></html>
  367.   </xsl:template>
  368.  
  369.  
  370. <xsl:template name="embedded_style">
  371. <style type="text/css">
  372.     body { background-color: #808080; color: black; font-family: verdana, arial, sans-serif; 
  373.     margin: 5px; padding 0px;}
  374.     
  375.     a, a:visited, a:active { 
  376.     color: #355EA0;
  377.     text-decoration: none;
  378.     border-bottom: 1px dotted #355EA0;
  379.     }
  380.     
  381.     a:hover { 
  382.     color: #FF6600;
  383.     text-decoration: none;
  384.     border-bottom: 1px dotted #FF6600;
  385.     }
  386.     
  387.     div {
  388.     /* font-family: "trebuchet ms", "lucida grande", verdana, arial, sans-serif;    */
  389.     font-family: verdana, arial, sans-serif;
  390.     }
  391.     
  392.     td.PostFrame { background-color: white; border: 1px solid black; padding: 10px; }
  393.     
  394.     div.PostTitle { 
  395.     /* font-family: "trebuchet ms", "lucida grande", verdana, arial, sans-serif;    */
  396.     font-family: verdana, arial, sans-serif;
  397.     font-size: medium;
  398.     }
  399.     
  400.     .PostTitle a, .PostTitle a:active, .PostTitle a:visited {
  401.     border-width: 0px;
  402.     color: #FF6600;
  403.     font-weight: bold;
  404.     text-decoration: none;
  405.     }
  406.     
  407.     .PostTitle a:hover {
  408.     border-width: 0px;
  409.     text-decoration: underline;
  410.     }
  411.     
  412.     div.PostInfos { 
  413.     color: #808080;
  414.     font-family: verdana, arial, sans-serif;    font-size: x-small;
  415.     font-weight: normal;
  416.     text-transform: none;
  417.     }
  418.     
  419.     div.PostContent {
  420.     font-size: x-small;
  421.     border-top: 1px dotted #CBCBCB;
  422.     margin: 10px 0px 10px 0px;
  423.     padding: 10px 0px 10px 0px;
  424.     border-bottom: 1px dotted #CBCBCB;
  425.     }
  426.     
  427.     div.PostSignature { 
  428.     text-align: right;
  429.     font-family: verdana, arial, sans-serif;    
  430.     font-size: xx-small; 
  431.     font-style: italic;
  432.     }
  433.     
  434.     .PostSignature a { font-size: x-small; }
  435. </style>
  436. <script>
  437.  function swapImage(img){
  438.  
  439.   var oldSrc = img.src; 
  440.   var folderEnd = oldSrc.lastIndexOf('/') + 1; 
  441.  
  442.  
  443.   if(img.useMap.indexOf('#readstate')==0){
  444.      if(oldSrc.indexOf('unread.gif')== -1){
  445.       img.src = oldSrc.substr(0, folderEnd) + 'unread.gif'; 
  446.      }else{
  447.       img.src = oldSrc.substr(0, folderEnd) + 'read.gif'; 
  448.      }
  449.   }else if(img.useMap.indexOf('#flagstate')==0){
  450.      if(oldSrc.indexOf('flag.clear.gif')== -1){
  451.       img.src = oldSrc.substr(0, folderEnd) + 'flag.clear.gif'; 
  452.      }else{
  453.       img.src = oldSrc.substr(0, folderEnd) + 'flag.red.gif'; 
  454.      }
  455.   }
  456.  
  457.  }
  458. </script>
  459. </xsl:template>
  460.  
  461. </xsl:stylesheet>